package com.miao.websecurity.config;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;
import java.util.List;

/**
 * @author MiaoWenqing
 * @description: TODO
 * @date 2021/1/16 19:32
 */
public class AuthAdmin  implements UserDetails {

    private String username;

    private String password;



    private Collection<? extends GrantedAuthority> authorities;
    private List<String> permissionValueList;

    public List<String> getPermissionValueList() {
        return permissionValueList;
    }

    public AuthAdmin() {
    }

    public AuthAdmin(String username, String password, List<String> permissionValueList, Collection<? extends GrantedAuthority> authorities) {
        this.username = username;
        this.password = password;
        this.permissionValueList = permissionValueList;
        this.authorities = authorities;
    }




    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        return null;
    }

    @Override
    public String getUsername() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
